public class Calculator {
    String color;
    String brand;
    int price;

    public void show() {
        System.out.println("这个计算器颜色是" + color + ",品牌是" + brand + ",价格为" + price + "元");
    }

    public String addition(int a, int b) {
        return "两个数相加的结果为" + (a + b);
    }

    public String multipiy(int a, int b) {
        return "两个数相乘的结果为" + (a * b);
    }

    public String divide(int a, int b) {
        return "两个数相除的结果为" + (a / b);
    }

    public String subtract(int a, int b) {
        return "两个数相减的结果为" + (a - b);
    }

    public String lifang(int a) {
        return "一个数立方的结果为" + (a * a * a);
    }

}
